1 {capture name="title"} - {l}Submit Category{/l}{/capture}
2 {capture assign="in_page_title"}{l}Submit Category{/l}{/capture}
3 {capture assign="description"}{l}Submit a new category to the directory{/l}{/capture}
4
5 {include file="header.tpl"}
6 {include file="top_bar.tpl"}
7
8 {include file="validation.tpl" form_id="submit_form" validators=$validators}
9
10 {literal}
11 <script type="text/javascript">
12 jQuery(document).ready(function(){
13 jQuery('#PARENT_ID').change(function() {
14 valid_obj.submit_form.rules.TITLE.remote.data.PARENT_ID = jQuery('#PARENT_ID').val();
15 });
16 });
18 </script>
19 {/literal}
20
21 {strip}
22
23 {if $smarty.const.DISABLE_SUBMIT == 1 && $is_admin neq 1}
24 <table width="96%" border="0" align="center" cellpadding="4" cellspacing="4" class="sp_area">
25 <tr>
26 <td>
27 <h2>{l}Closed{/l}</h2>
28 </td>
29 </tr>
30 <tr>
31 <td>
32 {l}We are sorry but category submissions are closed.{/l}<br /> {$disablereason}</a>
33 </td>
34 </tr>
35 </table>
36 <br />
37 {else}
38
39 {if empty($regular_user_details.ID) || (($uLevel != 1) && ($uLevel != 3))}
40 <table border="0" class="formPage">
41 <tr>
42 <td>
43 <h3>{l}Information{/l}</h3>
44 </td>
45 </tr>
46 <tr>
47 <td>
48 {l}You must be logged in as Admin or Super Editor to submit a new category.{/l}
49 <br />
50 {l}No account yet?{/l} <a href="{$smarty.const.DOC_ROOT}/profile.php?mode=register" title="{l}Register new user{/l}">{l}Create one{/l}</a>
51 </td>
52 </tr>
53 </table>
54 {else}
55 <form method="post" action="" id="submit_form">
56 <table border="0" class="formPage">
57 {if $error}
58 <tr><td colspan="2" class="err">
59 {l}An error occured while saving the category.{/l}
60 </td></tr>
61 {/if}
62
63 {if $posted}
64 <tr><td colspan="2" class="msg">
65 {l}Category submitted{/l}{if $waiting_approval eq 1}{l} and awaiting approval{/l}{/if}.<br />
66 {l}Submit another category.{/l}
67 </td></tr>
68 {/if}
69
70 <tr>
71 <td class="label underlined" align='left' colspan="2">{l}Fields marked with a {/l}<span class='req'>*</span>{l} are required.{/l}</td>
72 </tr>
73 <tr>
74 <td class="label"><span class='req'>*</span>{l}Title{/l}:</td>
75 <td class="field">
76 <input type="text" name="TITLE" value="{$TITLE|escape|trim}" size="40" maxlength="{$smarty.const.TITLE_MAX_LENGTH}" class="text" />
77 </td>
78 </tr>
79
80 {if $ENABLE_REWRITE and $symbolic ne 1}
81 <tr>
82 <td class="label"><span class='req'>*</span>{l}URL Title{/l}:</td>
83 <td class="field">
84 <input type="text" id="TITLE_URL" name="TITLE_URL" size="40" value="{$TITLE_URL|escape|trim}" maxlength="255" class="text" />
85 </td>
86 </tr>
87 {/if}
88 {if $symbolic ne 1}
89 <tr>
90 <td class="label">{l}Description{/l}:</td>
91 <td class="field">
92 <textarea name="DESCRIPTION" rows="3" cols="37" class="text" {formtool_count_chars name="DESCRIPTION" limit=$smarty.const.DESCRIPTION_MAX_LENGTH alert=true}>{$DESCRIPTION|escape|trim}</textarea>
93 <br />
94 {l}Limit{/l}: <input type="text" name="DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$DescriptionLimit|trim}" />{if isset ($allowedTags)} <small>Allowed html tags: {$allowedTags|wordwrap:30:"<br />\n"}</small>{/if} <br />{if isset ($allowedAttr)}<small>Allowed html attribute tags: {$allowedAttr|wordwrap:30:"<br />\n"}</small>{/if}
95 </td>
96 </tr>
97 {/if}
98 <tr>
99 <td class="label">{l}Parent Category{/l}:</td>
100 <td class="field">
101 {* Load category selection *}
102 {include file="category_select_parent.tpl"}
103 </td>
104 </tr>
105 <tr>
106 <td class="label">{l}RSS feed:{/l}</label></td>
107 <td class="field">
108 <input type="text" id="RSS_URL" name="RSS_URL" value="{$RSS_URL|escape|trim}" maxlength="255" size="40" class="text" />
109 </td>
110 </tr>
111
112 {if $symbolic eq 1}
113 <tr>
114 <td class="label required"><label for="SYMBOLIC_ID">{l}Symbolic category for{/l}:</label></td>
115 <td class="smallDesc">
116 {html_options options=$categs selected=$SYMBOLIC_ID name="SYMBOLIC_ID" id="SYMBOLIC_ID"}
117 </td>
118 </tr>
119 {/if}
120
121 <tr>
122 <td class="label required"><label for="STATUS">{l}Status{/l}:</label></td>
123 <td class="smallDesc">
124 {html_options options=$stats selected=$STATUS name="STATUS" id="STATUS"}
125 </td>
126 </tr>
127
128 {if $symbolic ne 1 and $smarty.const.ENABLE_META_TAGS eq 1}
129 <tr>
130 <td class="label">{l}META Keywords{/l}:</td>
131 <td class="field">
132 <input type="text" name="META_KEYWORDS" value="{$META_KEYWORDS|escape|trim}" size="40" maxlength="2000" class="text" />
133 <p class="small">{l}Separate keywords by comma.{/l}</p>
134 </td>
135 </tr>
136 <tr>
137 <td class="label">{l}META Description{/l}:</td>
138 <td class="field">
139 <textarea name="META_DESCRIPTION" rows="3" cols="30" class="text" {formtool_count_chars name="META_DESCRIPTION" limit=$smarty.const.META_DESCRIPTION_MAX_LENGTH alert=true}>{$META_DESCRIPTION|escape|trim}</textarea>
140 <br />
141 {l}Limit{/l}: <input type="text" name="META_DESCRIPTION_limit" size="4" class="limit_field" readonly="readonly" value="{$MetaDescriptionLimit|trim}" />
142 </td>
143 </tr>
144 {/if}
145
146 {if $symbolic ne 1}
147 <tr>
148 <td class="label">{l}Page Title{/l}:</td>
149 <td class="field">
150 <textarea name="TDESCRIPTION" id="TDESCRIPTION" rows="6" cols="37" class="text" >{$TDESCRIPTION|trim|escape}</textarea>
151 </td>
152 </tr>
153 {/if}
154
155 {if $symbolic ne 1}
156 <tr>
157 <td class="label">{l}Main area Content for the Category{/l}:</td>
158 <td class="field">
159 {include file="rte.tpl" NAME="CATCONTENT" VALUE=$CATCONTENT}
160 </td>
161 </tr>
162 {/if}
163
164 <tr>
165 <td colspan="2" class="buttons">
166 {if !$review_cat and !$remove_cat}
167 <input type="submit" name="continue" value="{l}Continue{/l}" class="btn" />
168 {else}
169 <input type="submit" name="edit" value="{l}Continue{/l}" class="btn" />
170 {/if}
171 </td>
172 </tr>
173 </table>
174 <input type="hidden" name="formSubmitted" value="1" />
175 </form>
176 {/if}
177 {/if}
178 {include file="footer.tpl"}
179 {/strip}